#pragma once
#include "stdafx.h"
#include "CTexture.h"
#include "CCamera.h"
#include "CChara.h"

class CMap{
private:
	CSprite m_sprite;
	int **m_map;
public:
	static int line_num,char_num;
	static const int MAP_WIDTH;
	static const int MAP_HEIGHT;
	BOOL MapInit();
	void MapFin();
	void Draw();
	BOOL LoadMap();
	int GetMap(D3DXVECTOR3 vec){return m_map[(int)vec.x/MAP_HEIGHT][(int)vec.y/MAP_WIDTH];}
	int GetMap(int x,int y){return m_map[y][x];}
};